package kr.co.doriclassic.chapter18;

import java.awt.EventQueue;
import javax.swing.JFrame;
import javax.swing.JTabbedPane;

public class SwingComponentEx extends JFrame {

	private JTabbedPane contentPane;

	public static void main(String[] args) {
		EventQueue.invokeLater(new Runnable() {
			public void run() {
				try {
					SwingComponentEx frame = new SwingComponentEx();
					frame.setVisible(true);
				} catch (Exception e) {
					e.printStackTrace();
				}
			}
		});
	}

	public SwingComponentEx() {
		initialize();
	}
	
	private void initialize() {
		setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		setBounds(100, 100, 450, 300);
		contentPane = new JTabbedPane();
		setContentPane(contentPane);
		
		PanelJList panel_list = new PanelJList();
		contentPane.addTab("JList", null, panel_list, null);
		
		PanelJCombobox panel_combobox = new PanelJCombobox();
		contentPane.addTab("JCombobox", null, panel_combobox, null);
		
		PanelJDialog panel_dialog = new PanelJDialog();
		contentPane.addTab("JDialog", null, panel_dialog, null);
		
		PanelJTable panel_table = new PanelJTable();
		contentPane.addTab("JTable", null, panel_table, null);
	}

}
